package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: MemberAccountSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-27
 * @Version: 1.0
 * Table: pear_member_account
 * Comment:
 * 组织账号表
 */
public class MemberAccountSuperController extends BaseController {
    @Autowired
    MemberAccountService service;

    public Integer addMemberAccount(MemberAccountAddRequest request) throws Exception {
        return service.addMemberAccount(request);
    }

    public Integer updateMemberAccount(MemberAccountUpdateRequest request) throws Exception {
        return service.updateMemberAccount(request);
    }

    public Integer deleteMemberAccount(MemberAccountDeleteRequest request) throws Exception {
        return service.deleteMemberAccount(request);
    }

    public MemberAccountQueryResponse queryMemberAccount(MemberAccountQueryRequest request) throws Exception {
        return service.queryMemberAccount(request);
    }

    public List<MemberAccountQueryResponse> listMemberAccount(MemberAccountQueryRequest request) throws Exception {
        return service.listMemberAccount(request);
    }

    public Integer countMemberAccount(MemberAccountQueryRequest request) throws Exception {
        return service.countMemberAccount(request);
    }

    public BaseStatResponse statMemberAccount(MemberAccountQueryRequest request) throws Exception {
        return service.statMemberAccount(request);
    }


}
